package com.example.springbootdemo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* <p>
* 用户表
* </p>
*
* @author whh
* @since 2020-08-12
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JjsmUser对象", description="用户表")
public class JjsmUserEntity implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户UUID")
    @TableId(value = "user_id", type = IdType.ASSIGN_UUID)
    private String userId;

    @ApiModelProperty(value = "小程序用户openid")
    @TableField("user_open_id")
    private String userOpenId;

    @ApiModelProperty(value = "用户昵称")
    @TableField("user_nick_name")
    private String userNickName;

    @ApiModelProperty(value = "用户头像")
    @TableField("user_avatar_url")
    private String userAvatarUrl;

    @ApiModelProperty(value = "性别   0 男  1  女  2 人妖")
    @TableField("user_gender")
    private Boolean userGender;

    @ApiModelProperty(value = "所在国家")
    @TableField("user_country")
    private String userCountry;

    @ApiModelProperty(value = "省份")
    @TableField("user_province")
    private String userProvince;

    @ApiModelProperty(value = "城市")
    @TableField("user_city")
    private String userCity;

    @ApiModelProperty(value = "创建时间")
    @TableField("user_create_time")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime userCreateTime;

    @ApiModelProperty(value = "手机类型")
    @TableField("user_mobile")
    private String userMobile;

    @ApiModelProperty(value = "手机号码")
    @TableField("user_telnum")
    private String userTelnum;

    @ApiModelProperty(value = "最近登录时间")
    @TableField("user_last_login_time")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime userLastLoginTime;

    @ApiModelProperty(value = "商家Id")
    @TableField("admin_Id")
    private String adminId;


    public static final String USER_ID = "user_id";

    public static final String USER_OPEN_ID = "user_open_id";

    public static final String USER_NICK_NAME = "user_nick_name";

    public static final String USER_AVATAR_URL = "user_avatar_url";

    public static final String USER_GENDER = "user_gender";

    public static final String USER_COUNTRY = "user_country";

    public static final String USER_PROVINCE = "user_province";

    public static final String USER_CITY = "user_city";

    public static final String USER_CREATE_TIME = "user_create_time";

    public static final String USER_MOBILE = "user_mobile";

    public static final String USER_TELNUM = "user_telnum";

    public static final String USER_LAST_LOGIN_TIME = "user_last_login_time";

    public static final String ADMIN_ID = "admin_Id";

}
